<template>
  <el-radio-group :model-value="modelValue+''" @change="changeHandle">
    <el-radio :label="data.dictValue" v-for="data in dataList" :key="data.dictValue">{{data.dictLabel}}</el-radio>
  </el-radio-group>
</template>
<script setup>
import {getDictDataList} from "../utils/util.js";

const emit = defineEmits(['update:modelValue'])
const props = defineProps({
  modelValue: [Number, String],
  dictType: String
})
const dataList =  getDictDataList(props.dictType)
const changeHandle = (val) => {
	emit('update:modelValue', val)
}
</script>
